﻿namespace Benefactor.Services;

public class AppConfig(IConfiguration configuration) : IAppConfig
{
    public string ApiKey { get; } = configuration.GetValue<string>("ApiKey") ?? "";
    public string FileApiBaseUrl { get; } = configuration.GetValue<string>("FileApiBaseUrl") ?? "";
    public string BenefitsCardMerchantId { get; } = configuration.GetValue<string>("BenefitsCardMerchantId") ?? "";
    public string CrmebDbConnectionString { get; } = configuration.GetValue<string>("CrmebDbConnectionString") ?? "";
    public string CrmebImageBaseUrl { get; } = configuration.GetValue<string>("CrmebImageBaseUrl") ?? "";
}